package twi.result.graph;

import java.util.ArrayList;

import prefuse.data.Node;
import twi.result.table.RTable;

import com.hp.hpl.jena.rdf.model.RDFNode;

public class RNode {
	private RDFNode node = null;
	private ArrayList<REdge> inEdge = new ArrayList<REdge>();
	private ArrayList<REdge> outEdge = new ArrayList<REdge>();
	private Node visualNode;

	public RNode(RDFNode node) {
		this.node = node;
	}

	public ArrayList<REdge> getInEdge() {
		return inEdge;
	}

	public ArrayList<REdge> getOutEdge() {
		return outEdge;
	}

	public void addOutNode(REdge e) {
		this.outEdge.add(e);
	}

	public void addInNode(REdge e) {
		this.inEdge.add(e);
	}

	public String getName() {
		return RTable.getNodeName(node);
	}

	public Node getVisualNode() {
		return this.visualNode;
	}

	public void setVisualNode(Node pn) {
		this.visualNode = pn;
	}

}
